<html>
{*include file="template/admin_head_plugin.htm"*}
<body style="background: none repeat scroll 0pt 0pt transparent;">

            <div class="wrapper">
            {*if $cf_action=='detail'*}
            <div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">公告詳情</span>
                    </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8">

                    <form name="act_form" id="act_form" method="post" action="{*$cf_self_page*}">
                        <input name="act" id="act" type="hidden" value="record_toexcel" />
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl tbl_nbr">
                            <tbody>                                
                                <tr>
                                    <td width="23%" align="right">公告標題:</td>
                                  <td width="77%">{*$row['notice_title']*}{*if $row['notice_dpt_type'] == '1'*}<img src="public/images/admin/you.png" align="middle" title="附件"/>{*/if*}</td>
                              </tr>
                                 <tr>
                                   <td align="right">部門性質:</td>
                                   <td>{*$cf_info_var['1'][$row['notice_dpt']]*}</td>
                                 </tr>
                                 <tr>
                                    <td align="right">信息類型:</td>
                                    <td>{*$cf_info_var['2'][$row['notice_type']]*}</td>
                                </tr>
                                  <tr>
                                    <td align="right">公告內容:</td>
                                    <td>{*$row['notice_content']|nl2br*}</td>
                                </tr>
                                  <tr>
                                    <td align="right">發佈人:</td>
                                    <td>{*$row['notice_creator']*}</td>
                                  </tr>
                                  <tr>
                                    <td align="right">發佈時間:</td>
                                    <td>{*$row['notice_create_time']*}</td>
                                  </tr>
                                {*if $row['notice_file']*}
                                    <tr>
                                        <td class="ltd" align="right">已上传附件:</td>
                                        <td align="left"><a href="admin/notice-act_download_id_{*$row['notice_id']*}.htm?dpt={*$cf_dpt*}" target="_blank" class="del">下載</a></td>
                                    </tr>
                            	{*/if*}

                            </tbody>
                        </table>
                  </form>
                 </div>
                </div>
              
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
                {*elseif $cf_action=='noticelist'*}
            <div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">公告列表</span>
                    </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8">

                    <form name="act_form" id="act_form" method="post" action="{*$cf_self_page*}">
                        <input name="act" id="act" type="hidden" value="record_toexcel" />
                        <table width="100%" class="tbl tbl_nbr">
                        <thead>
                            <tr class="thd">
                                <td align="center">ID</td>
                                <td width="25%" align="center" class="thr">标题</td>
                                <td width="11%" align="center" class="thr">部門性質</td>
                                <td width="9%" align="center" class="thr">信息類型</td>
                                <td width="8%" align="center" class="thr">發佈人</td>
                                <td width="14%" align="center" class="thr">發佈時間</td>
                                <td align="center" class="thr">操作</td>
                            </tr>
                        </thead>
                        <tbody>
                            {*foreach name=notice_part item=item from=$data_ary*}

                            {*assign var=hot value=$item['notice_hot']*}
                            {*assign var=notice_dpt value=$item['notice_dpt']*}
                            {*assign var=type value=$item['notice_type']*}
                            <tr onMouseOver="this.style.backgroundColor='#ffC'" onMouseOut="this.style.backgroundColor='#ffF'">
                                <td align="center">{*$item['notice_id']*}</td>
                                <td align="left">{*if $item['notice_dpt_type'] == '1'*}<img src="public/images/admin/you.png" align="middle" title="附件"/>{*/if*}{*$item['notice_title']*}&nbsp;{*if $item['notice_file']*}<a href="admin/notice-act_download_id_{*$item['notice_id']*}.htm?dpt={*$cf_dpt*}" target="_blank"><img src="public/images/admin/{*$item['thumb']*}.gif" align="middle" title="附件" /></a>{*/if*}</td>
                            	<td align="center">{*if strstr($item['notice_dpt'],',')*}多個部門{*else*}{*$cf_info_var['1'][$item['notice_dpt']]*}{*/if*}</td>
                                <td align="center">{*$cf_info_var['2'][$item['notice_type']]*}</td>
                                <td align="center">{*$item['notice_creator']*}</td>
                                <td align="center">{*$item['notice_create_time']*}</td>
                                <td align="center"><a href="javascript:void(0)" title="查看詳情" onClick="$(function(){my_iframe('{*$cf_self_path*}-act_detail.htm?id={*$item['notice_id']*}','查看詳情-{*$item['notice_title']*}',600,400)})" class="edit">詳情</a></td>
                            </tr>
                            {*/foreach*}

                            <tr class="tft">
                                <td colspan="8" style="padding:0;">
                                    <table width="100%" border="0">
                                        <tr>
                                            <td width="6%" align="center" style="border:0;padding:0;">&nbsp;</td>
                                            <td width="22%" align="center" style="border:0;padding:0;">&nbsp;</td>
                                            <td width="72%" style="border:0;padding:0;" ><div class="turnPage"><p>{*$page*}</p></div></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                  </form>
                 </div>
                </div>
              
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
                {*/if*}
            </div>
</body>
</html>